package com.itheima.d4_collection_set;

import java.util.HashSet;
import java.util.Set;

public class SetTest3 {
    public static void main(String[] args) {

        Student s1 = new Student("张三", 23,181);
        Student s11 = new Student("张三", 23,181);
        Student s2 = new Student("李四", 24,182);

        System.out.println(s1.hashCode());
        System.out.println(s11.hashCode());
        System.out.println(s2.hashCode());


        String s3 = new String("abc");
        String s4 = new String("abD");
        System.out.println(s3.hashCode());
        System.out.println(s4.hashCode());
    }
}
